-- GENERATED SPELL FOR [Withered Giant] --


function spell0_18124(pUnit, Event) --@Osmosis,n/a--
pUnit:FullCastSpellOnTarget(35235,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18124', 5000, 1)
end

function Sorts_18124(pUnit, Event)
local choix_sorts_18124 = math.random(0, 0)
if choix_sorts_18124 == 0 then
pUnit:RegisterEvent('spell0_18124', 1, 1)
end
end

function mob18124_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18124', math.random(1500, 3000), 1)
end

function mob18124_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18124_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18124_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18124, 1, 'mob18124_Action')
RegisterUnitEvent(18124, 2, 'mob18124_Leave')
RegisterUnitEvent(18124, 3, 'mob18124_Kill')
RegisterUnitEvent(18124, 4, 'mob18124_Die')
